import {get,post,postJson} from '../http.js'

// 得到待处理订单
export function getSuspenseOrderData(formdata){
    return get('/orders/getSuspenseOrderData',formdata)
}
// 抢单
export function delivery(formdata){
    return post('/orders/delivery',formdata)
}
// 正在处理的订单查询
export function getShippedOrderData(){
    return get('/orders/getShippedOrderData',null)
}
// 查询已完成的订单
export function getCompletedOrderData(params){
    return get('/orders/getCompletedOrderData',params)
}
export function completedOrderSearch(formdata){
    return post('/orders/completedOrderSearch',formdata)
}
export function selectByMouth(formdata){
    return post('/orders/selectByMouth',formdata)
}

export function getEmployeeInfo(){
    return get('/Employee/getEmployeeInfo',null)
}

export function updateEmployeeInfo(formdata){
    return postJson('/Employee/updateEmployee',formdata)
}
export function getEmployeeInfoById(formdata)
{
    return post('/Employee/getEmployeeInfoById',formdata)
}

export function getSuspenseOrderUser()
{
    return get('/orders/getSuspenseOrderUser',null)
}
export function getEmployeeSimpleInfo(formdata){
    return get('/Employee/getEmployeeSimpleInfo',formdata)
}
export function getEmployeeBaseInfo(){
    return get('/Employee/getEmployeeBaseInfo',null)
}